package com.my.webhr.pro.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.my.webhr.pro.mapper.PersonalMapper;
import com.my.webhr.pro.pojo.Personal;
import com.my.webhr.pro.service.PersonalService;
@Service
public class PersonalServiceImpl implements PersonalService {
	@Autowired
	private PersonalMapper personalMapper;
	@Override
	public int deleteOne(int pId) {
		return personalMapper.deleteByPrimaryKey(pId);
	}

	@Override
	public int modifyOne(Personal personal) {
		return personalMapper.updateByPrimaryKeySelective(personal);
	}

	@Override
	public int updateOne(Personal personal) {
		return personalMapper.insert(personal);
	}

}
